//
//  UIBarButtonItem+SGBarButton.h
//  SGShow
//
//  Created by fanshijian on 15-3-10.
//  Copyright (c) 2015年 fanshijian. All rights reserved.
//  定义导航栏上的按钮

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (SGBarButton)

// 左侧 - 返回按钮
+ (UIBarButtonItem *)createBackBarButtonForDelegate:(id)delegate action:(SEL)action;

// 左侧 - 返回按钮 (带文字)
+ (UIBarButtonItem *)createBackBarButtonForDelegate:(id)delegate title:(NSString *)title action:(SEL)action;

// 左侧 - 菜单按钮
+ (UIBarButtonItem *)createMenuBarButtonForDelegate:(id)delegate action:(SEL)action;

// 右侧 - 文字按钮
+ (UIBarButtonItem *)createRightWordBarButtonForDelegate:(id)delegate title:(NSString *)title action:(SEL)action;

// 右侧 - 根据文字内容动态生成按钮
+ (UIBarButtonItem *)flexibleCreateRightWordBarButtonForDelegate:(id)delegate title:(NSString *)title action:(SEL)action;

@end

